# Maintainer: Will Sinatra <wpsinatra@gmail.com>
# Contributor: Will Sinatra <wpsinatra@gmail.com>
pkgname=cage
pkgver=0.1.4
pkgrel=2
pkgdesc="Wayland Kiosk"
url="https://www.hjdskes.nl/projects/cage/"
license="MIT"
arch="all"
options="!check" # no test suite
depends="xwayland"
makedepends="meson wlroots-dev wayland-protocols scdoc"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Hjdskes/cage/archive/v$pkgver.tar.gz
	wlroots-0.15.patch
	"

build() {
	abuild-meson \
		-Dxwayland=true \
		build
	meson compile ${JOBS:+-j ${JOBS}} -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
55773fac44bf9e98086e53cbc20d17e3aad7046bedfe638ef8f896543388481be3989fede6f950d4f8cb0583f701cbf79617dfa011c7777a7c8b22c9bcddd64f  cage-0.1.4.tar.gz
018a581abb6e4fa63b73896cf0fb299ef68215a5fbdd2f1526dc6dd82430e72cb9fd1a2d57f4a6f40856a247fea6adbd937e8b67ed10d9877b3f31f7dc6f2431  wlroots-0.15.patch
"
